package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.MyRecord;
import com.common.PageParamRequest;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.front.request.IndexStoreProductSearchRequest;
import com.zbkj.crmeb.store.model.StoreProduct;
import com.zbkj.crmeb.store.model.StoreProductReward;
import com.zbkj.crmeb.store.request.StoreProductRequest;
import com.zbkj.crmeb.store.request.StoreProductRewardRequest;
import com.zbkj.crmeb.store.request.StoreProductRewardSearchRequest;
import com.zbkj.crmeb.store.request.StoreProductSearchRequest;
import com.zbkj.crmeb.store.request.StoreProductStockRequest;
import com.zbkj.crmeb.store.response.StoreProductResponse;
import com.zbkj.crmeb.store.response.StoreProductRewardResponse;
import com.zbkj.crmeb.store.response.StoreProductTabsHeader;
import java.io.IOException;
import java.util.List;

import com.zbkj.crmeb.user.model.UserLevelGood;
import org.json.JSONException;

/**
 * StoreProductRewardService 接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface StoreProductRewardService extends IService<StoreProductReward> {

    /**
     * 获取分销商品佣金列表Admin
     * @param request
     * @param pageParamRequest
     * @return
     */
    PageInfo<StoreProductRewardResponse> getList(StoreProductRewardSearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 根据商品id查询（排除id）
     * @param goodId
     * @param id
     * @return
     */
    StoreProductReward getByGoodIdNeId(Integer goodId, Integer id);

    /**
     * 根据商品id查询（排序id）
     * @param goodId
     * @return
     */
    StoreProductReward getByGoodId(Integer goodId);
}
